package com.pomodorotechnique.toolkit;

import java.util.ArrayList;
import java.util.List;

import android.R.integer;

public class ORHelper<T> {
	
	public List<String> columnNamesList = new ArrayList();
	public List<Object> attList = new ArrayList();
	
	public void put(String name,Object att) {
		columnNamesList.add(name);
		attList.add(att);
//		if(columnNamesList.size() != attList.size())
//			throw new Exception("size wrong");
	}
	
	public void setValue(String name,Object value){
		int index = columnNamesList.indexOf(name);
		attList.set(index,value);
		System.out.println(get(name));
	}
	
	public Object get(String name){
		int index = columnNamesList.indexOf(name);
		return attList.get(index);
	}

	public ORHelper() {
		// TODO Auto-generated constructor stub
	}

}
